Increase the precision of ref gamma conversions
authorDaniel Sabo <DanielSabo@gmail.com>
Sun, 14 Jul 2013 06:42:08 +0000 (23:42 -0700)
committerDaniel Sabo <DanielSabo@gmail.com>
Sat, 21 Sep 2013 15:06:18 +0000 (08:06 -0700)
commit90084c5e4d3dfc43a414f3028c657f90bacb23f2
treebf51eccf60cf5aa92157bcff5f4c23ee19f3a553
parent2c07b091b6037b980484d9a16a0f9d8aaf0cb912
Increase the precision of ref gamma conversions

Use a 3 round Newtons method for the fast version. This should be
fully accurate for floats in [0, 1], less so for very small values
but they're in the the linear part of the sRGB curve.

For the reference conversions the standard C pow() function is
used, which give accuracy far in excess of anything we need.
babl/base/pow-24.c
babl/base/util.h
extensions/float.c
extensions/sse2-float.c